<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    div{
      margin: 20px;
    }
    #up{
      width:0;
      height: 0;
      border-left:50px solid transparent;
      border-right:50px solid transparent;
      border-bottom:100px solid pink;
    }
    #down {
        width: 0;
        height: 0;
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-top: 100px solid red;
      }
      
      #left {
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-right: 100px solid red;
        border-bottom: 50px solid transparent;
      }
      
      #right {
        width: 0;
        height: 0;
        border-top: 50px solid transparent;
        border-left: 100px solid red;
        border-bottom: 50px solid transparent;
      }
      
      #top-left {
        width: 0;
        height: 0;
        border-top: 100px solid red;
        border-right: 100px solid transparent;
      }
      
      #top-right {
        width: 0;
        height: 0;
        border-top: 100px solid red;
        border-left: 100px solid transparent;
      }
      
      #bottom-left {
        width: 0;
        height: 0;
        border-bottom: 100px solid red;
        border-right: 100px solid transparent;
      }
      
      #bottom-right {
        width: 0;
        height: 0;
        border-bottom: 100px solid red;
        border-left: 100px solid transparent;
      }
      
      .sanj {
        height: 0;
        width: 0;
        border-right: 20px solid #008000;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
      }
  </style>
</head>
<body>
  <div class="sanj"></div>
  <div id="up"></div>
  <div id="down"></div>
  <div id="left"></div>
  <div id="right"></div>
  <div id="top-left"></div>
  <div id="top-right"></div>
  <div id="bottom-left"></div>
  <div id="bottom-right"></div>
</body>
</html>
